#!user/bin/env python3
# -- coding: utf-8 --
# @Createtime：2023/9/9
# @Updatetime：22:13
# @Author：Test008
# @File：9-单继承.py
# @Description： 单继承

# class Phone:
#     IMEI = None  # 序列号
#     producer = None  # 厂商号
#
#     def call_by_4g(self):
#         print("4g通话")
#
#
# class Phone2023(Phone):
#     face_is = None  # 面部识别
#
#     def call_by_5g(self):
#         print("2023最新5g通话")
#
#
# phone = Phone2023()
# phone.call_by_5g()
# phone.call_by_4g()
# phone.IMEI = "00300243"
# print(phone.IMEI)

class Phone:
    IMEI = "0030032"
    producer = "小米"

    def call_by_4g(self):
        print("4g通话")


class NFCreader:
    nfc_type = "第五代"
    producer = "HM"

    def reader_card(self):
        print("读卡操作")

    def write_card(self):
        print("写卡操作")


class RemoteControl():
    rc_type = "红外遥控器"

    def control(self):
        print("红外遥控器开启")


class Phone2023(Phone, NFCreader, RemoteControl):
    face_id = True

    def call_by_5g(self):
        print("新5G通话")


pho = Phone2023()
print(pho.producer)
pho.call_by_4g()
pho.call_by_5g()
pho.reader_card()
